/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "物料维护",TableName = "PROC_MATERIAL")]
    public partial class PROC_MATERIAL:BaseEntity
    {
        /// <summary>
       ///Id
       /// </summary>
       [Key]
       [Display(Name ="Id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid Id { get; set; }

       /// <summary>
       ///物料编码
       /// </summary>
       [Display(Name ="物料编码")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Identifier { get; set; }

       /// <summary>
       ///工单
       /// </summary>
       [Display(Name ="工单")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Order_Id { get; set; }

       /// <summary>
       ///物料名称
       /// </summary>
       [Display(Name ="物料名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialNameZH { get; set; }

       /// <summary>
       ///物料描述
       /// </summary>
       [Display(Name ="物料描述")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Description { get; set; }

       /// <summary>
       ///货架点
       /// </summary>
       [Display(Name ="货架点")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string SHELVES_Id { get; set; }

       /// <summary>
       ///模具名称
       /// </summary>
       [Display(Name ="模具名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string workpiece_name { get; set; }

       /// <summary>
       ///工件编号
       /// </summary>
       [Display(Name ="工件编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string WorkpieceCode { get; set; }

       /// <summary>
       ///供应商
       /// </summary>
       [Display(Name ="供应商")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string SupplierId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CreateBy { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateOn { get; set; }

       /// <summary>
       ///更新人
       /// </summary>
       [Display(Name ="更新人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string UpdateBy { get; set; }

       /// <summary>
       ///更新时间
       /// </summary>
       [Display(Name ="更新时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? LastUpdateOn { get; set; }

       /// <summary>
       ///逻辑删除  0/不删除  1/已删除
       /// </summary>
       [Display(Name ="逻辑删除  0/不删除  1/已删除")]
       [Column(TypeName="bit")]
       [Editable(true)]
       public bool? IsDeleted { get; set; }

       /// <summary>
       ///工艺路线
       /// </summary>
       [Display(Name ="工艺路线")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string ProcessRouteId { get; set; }

       /// <summary>
       ///工件型号
       /// </summary>
       [Display(Name ="工件型号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string workpiece_type { get; set; }

       /// <summary>
       ///材质
       /// </summary>
       [Display(Name ="材质")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string material { get; set; }

       /// <summary>
       ///目标精度
       /// </summary>
       [Display(Name ="目标精度")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? target_accuracy { get; set; }

       /// <summary>
       ///加工机床
       /// </summary>
       [Display(Name ="加工机床")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int machine { get; set; }

       /// <summary>
       ///工件长度
       /// </summary>
       [Display(Name ="工件长度")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       public decimal? workpiece_length { get; set; }

       /// <summary>
       ///工件宽度
       /// </summary>
       [Display(Name ="工件宽度")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? workpiece_width { get; set; }

       /// <summary>
       ///工件高度
       /// </summary>
       [Display(Name ="工件高度")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       public decimal? workpiece_height { get; set; }

       /// <summary>
       ///预设中心点x距离
       /// </summary>
       [Display(Name ="预设中心点x距离")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? x_instance { get; set; }

       /// <summary>
       ///预设中心点y距离
       /// </summary>
       [Display(Name ="预设中心点y距离")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? y_instance { get; set; }

       /// <summary>
       ///预设中心点z距离
       /// </summary>
       [Display(Name ="预设中心点z距离")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? z_instance { get; set; }

       /// <summary>
       ///物料类型
       /// </summary>
       [Display(Name ="物料类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialType { get; set; }

       /// <summary>
       ///硬度
       /// </summary>
       [Display(Name ="硬度")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       public decimal? Hardness { get; set; }

       /// <summary>
       ///预设中心点
       /// </summary>
       [Display(Name ="预设中心点")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ceshi { get; set; }

       /// <summary>
       ///制造类型
       /// </summary>
       [Display(Name ="制造类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ManufacturType { get; set; }

       /// <summary>
       ///图
       /// </summary>
       [Display(Name ="图")]
       [Column(TypeName="nvarchar")]
       public string Img { get; set; }

       /// <summary>
       ///计划开始时间
       /// </summary>
       [Display(Name ="计划开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? PlanStart { get; set; }

       /// <summary>
       ///计划结束时间
       /// </summary>
       [Display(Name ="计划结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? PlanEnd { get; set; }

       /// <summary>
       ///入库状态
       /// </summary>
       [Display(Name ="入库状态")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       public string StorageState { get; set; }

       /// <summary>
       ///重量
       /// </summary>
       [Display(Name ="重量")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? Weight { get; set; }

       /// <summary>
       ///夹具
       /// </summary>
       [Display(Name ="夹具")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string ToolFixtureCode { get; set; }

       /// <summary>
       ///位置
       /// </summary>
       [Display(Name ="位置")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? location { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="workpiece_id")]
       [Column(TypeName="int")]
       [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
       [Required(AllowEmptyStrings=false)]
       public int workpiece_id { get; set; }

       /// <summary>
       ///RfidCode
       /// </summary>
       [Display(Name ="RfidCode")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string RfidCode { get; set; }

       /// <summary>
       ///规格
       /// </summary>
       [Display(Name ="规格")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Specification { get; set; }

       /// <summary>
       ///单位
       /// </summary>
       [Display(Name ="单位")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       [Editable(true)]
       public string Unit { get; set; }

       /// <summary>
       ///数量
       /// </summary>
       [Display(Name ="数量")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? Quantity { get; set; }

       
    }
}